import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///屏幕适配
class ScreenPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _ScreenPageState();
}

class _ScreenPageState extends State<ScreenPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('屏幕适配'),
      ),
      body: Container(
        alignment: Alignment.topCenter,
        child: Row(
          children: [
            Container(
              width: 360.w,
              height: 200.0,
              color: Colors.red,
            ),
            Container(
              width: 360.w,
              height: 100.0,
              color: Colors.yellow,
            ),
          ],
        ),
      ),
    );
  }
}
